//
//  ViewController.m
//  ZuoYe2
//
//  Created by 钟纪旺 on 16/4/20.
//  Copyright © 2016年 zjw. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()
{
    NSArray *tata;

}
@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    UITableView *tableview=[[UITableView alloc]initWithFrame:self.view.bounds style:UITableViewStylePlain];
    tableview.dataSource=self;
    [self.view addSubview:tableview];
    tata =@[
            @"                          🐰🐰🐰       ",
            @"              🌹🌹🌹         🌹🌹🌹",
            @"         🐸🐸🐸                     🐸🐸🐸  ",
            @"  🐑🐑🐑                                 🐑🐑🐑    ",
            @"         🐺🐺🐺                       🐺🐺🐺 ",
            @"               🐶🐶🐶             🐶🐶🐶    ",
            @"                            🐰🐰🐰    ",
            ];
}
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{

    return tata.count;

}
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    UITableViewCell *data=[[UITableViewCell alloc]initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:nil];
    data.textLabel.text=tata[indexPath.row];
    data.detailTextLabel.text=@"动物";
    return data;

}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
